package net.tailfish.app.controller;

import net.tailfish.app.consts.AppConst;
import net.tailfish.starter.common.generator.IdGeneratorUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PackageName net.tailfish.app.controller
 * @ClassName HelloController
 * @Author tailFish
 * @Date Created in 13:57 2021/7/26
 * @Description 测试使用
 */
@RestController
@RequestMapping(value = "/hello/"+AppConst.APP_VERSION)
public class HelloController {

    @Autowired
    private IdGeneratorUtils idGeneratorUtils;

    @RequestMapping(value = "getNextId",method = RequestMethod.GET)
    public String getNextId(){
        return idGeneratorUtils.getNextId();
    }
}
